package top.whysu.rongcloud.dto.rongcloud.groups;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author whysu
 * @version 1.00.00
 * @description 创建群组
 * @copyright
 * @company
 * @date 2021-03-16 8:46
 */
public class GroupsCreateDTO {
    /**
     * 创建该群的用户账号 (对应e_rong_cloud_user的account)
     */
    @NotNull(message = "用户账号不能为空！")
    private String userAccount;
    /**
     * 群成员账号集合(对应e_rong_cloud_user的account)
     */
    @NotEmpty(message = "请指定成员！")
    private List<String> memberAccounts;
    /**
     * 群名称
     */
    private String name;
    /**
     * 群头像
     */
    private String portraitUri;

    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public List<String> getMemberAccounts() {
        return memberAccounts;
    }

    public void setMemberAccounts(List<String> memberAccounts) {
        this.memberAccounts = memberAccounts;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPortraitUri() {
        return portraitUri;
    }

    public void setPortraitUri(String portraitUri) {
        this.portraitUri = portraitUri;
    }
}